home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1134 / logic.tt_ / logic
Encoding:
Text File  |  1996-07-25  |  507 b   |  32 lines

  1. NPLAN logical AND/OR/XOR example                    
  2.  
  3. [LABELS]    [Input A]    [Input B]    [AND]    [OR ]    [XOR]
  4. [END]    
  5.  
  6. [TEST]    >    >    <    <    <
  7. [case 1]    0    0    0    0    0
  8. [case 2]    0    1    0    1    1
  9. [case 3]    1    0    0    1    1
  10. [case 4]    1    1    1    1    0
  11. [END]    
  12.  
  13. [INTERROGATE]    >    >    <    <    <
  14. [case 1]    0    0    ?    ?    ?
  15. [case 2]    0    1    ?    ?    ?
  16. [case 3]    1    0    ?    ?    ?
  17. [case 4]    1    1    ?    ?    ?
  18. [END]    
  19.  
  20. [TRAINING]    >    >    <    <    <    
  21. [case 1]    0    0    0    0    0    
  22. [case 2]    0    1    0    1    1    
  23. [case 3]    1    0    0    1    1    
  24. [case 4]    1    1    1    1    0    
  25. [END]
  26.  
  27. [LIMITS]    >    >    <    <    <    
  28. [highs]    1    1    1    1    1    
  29. [lows]    0    0    0    0    0    
  30. [END]
  31.  
  32.